import { DB } from './db/db'

export async function getArtInfo(id:string){
    const res = await DB
    .select('*')
    .from('arts')
    .where('artId',id)
    .queryRow()

    return {success:true,data:res}
}

export async function getArtsList(){
    const res = await DB.select('*')
    .from('arts')
    .queryList();
    return {success:true,data:res}
}